package org.youyun56.gpsserver.common;

import java.util.HashMap;

public class YouyunMap extends HashMap<String, String> {

    /**
	 * 
	 */
    private static final long serialVersionUID = -330792885213283182L;

    public Long getLong(String name) {
        String value = get(name);
        return value != null ? Long.parseLong(value) : null;
    }

    public Double getDouble(String name) {
        String value = get(name);
        return value != null ? Double.parseDouble(value) : null;
    }

    public Float getFloat(String name) {
        String value = get(name);
        return value != null ? Float.parseFloat(value) : null;
    }

    public Integer getInt(String name) {
        String value = get(name);
        return value != null ? Integer.parseInt(value) : null;
    }

}
